Skip to main content

All Questions

0votes
1answer
38views

How to use useSelect to retrieve the currently default fontFamily?

I'm trying to identify where I could find this information but I've not been able til the present moment, to achieve it. I've been looking in core/block-editor and core/editor. I've been researching ...
Iogui's user avatar
0votes
0answers
10views

Event when Modal is opened/visible

In my WordPress plugin, a Modal gets opened from within the Block Editor when a button is clicked. const MyContent = () => { const [isOpen, setOpen] = useState(false); const openModal = () =...
Abid's user avatar
  • 153
1vote
1answer
521views

Insert text programmatically in WordPress Gutenberg Editor

What's the correct way to insert text (or modify existing, selected text) in the Gutenberg rich text Editor? I have a button/menu choice added to the drop down menu to the right of the "Link"...
joho's user avatar
0votes
1answer
263views

Javascript function defined in view.js not reachable from save.js

I am trying to develop a custom gutenberg block. I have a form in save.js: export default function save() { return ( <div {...useBlockProps.save()}> <form onSubmit={...
Shugui's user avatar
0votes
1answer
374views

How to move custom gutenberg block controls from settings to styles tab?

I'm writing custom Gutenberg blocks for my future projects. I have a few blocks and everyone of these has its own controls that allow change of border attributes, colors etc. All of these controls are ...
Mateusz's user avatar
2votes
0answers
443views

Gutenberg move post/page title to Editor sidebar document panel

I have not liked the way that the post/page title in Wordpress 6 / Gutenberg is contained directly in the block editor. I have found many ways to remove it with filters and / or restyle it but ...
Walrus's user avatar
2votes
0answers
50views

configure additonal build files in the @wordpress/create-block

I'm using the @wordpress/create-block package to create my block plugin. It comes with preconfigured webpack settings to build all the assets. By default as js in the src/ folder is built in the build/...
Will Honeywill's user avatar
2votes
1answer
1kviews

useBlockProps() nests wrapper with class name inside block wrapper in the editor

I'm trying to add a tailwind class to the block wrapper of a custom block I'm developing. However, useBlockProps({className: 'h-full'}) generates an additional wrapper with the tailwind class name ...
Gayle F.'s user avatar
0votes
0answers
106views

Cannot call a class as a function in block plugin react component

I'm developing a block plugin and working with the React packages for WordPress. In my Save function I'm trying to load a slider component from the package ['react-slick'] (https://github.com/akiran/...
Will Honeywill's user avatar
2votes
1answer
153views

Is It Possible to Use the Block Editor’s Notification Feature to Send Another Notification After the Post Is Saved?

I have custom fields added to a custom post and I'm using the block editor to edit the custom posts. I'm saving the custom fields separately when the user hits the Update button. The block editor ...
Samuel Bacay's user avatar
0votes
1answer
689views

Vanilla javascript in custom gutenberg block not working

I am trying to create a custom gutenberg block for a school project. I am new to this and I have not used the @wordpress/create-block method. I have created a plugin with a test block manually with a ...
user232026's user avatar
0votes
0answers
56views

Reinitiate Gutenburg's blocks using javascript

I'm developing a WordPress plugin that manipulates some Gutenberg blocks using javascript. For better understanding, create a table in a post and run the code below in the console: let tableHtml = ...
Erfan Paslar's user avatar
2votes
0answers
88views

How can i add insertion point between inner blocks in my custom block like core blocks

In core/buttons and core/columns, you will see an insertion point button between the inner blocks, as shown in the screenshot below. Now I'm building a custom block with inner blocks, how can i enable ...
ibllex's user avatar
4votes
0answers
1kviews

Developing the save function in Gutenberg blocks

I am editing the save function on my local wordpress instance. Every time I make a change, I need to manually click the "Attempt Block Recovery" button to see the updated change when I go to ...
prawn's user avatar
0votes
2answers
842views

Wordpress - Get Posts with Category data

i have a question about improving my solution. For my task i build a Gutenberg block which shows the latest 5 Posts. This Posts show also the Category Name in the Frontend part which have different ...
Jaba's user avatar

153050per page
close